package com.jweb.framework.core.channel;

import java.io.IOException;

public class CommunicationException extends IOException {
	
	private static final long serialVersionUID = 6197959838616528526L;
	private boolean timeout ;
	
	public CommunicationException(boolean flag){
		this.timeout = flag ;
	}
	
	public  CommunicationException(boolean flag , String message){
		super(message);
		this.timeout = flag ;
	}
	
	public CommunicationException(boolean flag , Throwable t){
		this.timeout = flag ;
		initCause(t);
	}
	
	public CommunicationException(boolean flag , String message , Throwable t){
		super(message);
		this.timeout = flag ;
		initCause(t);
	}
	
	public boolean isTimeout(){
		return this.timeout ;
	}
	
}
